package yawning.mew.cat;

import yawning.mew.sim.SimulationEvent;

public class EventTier_11_4pc extends SimulationEvent {
	CatModelSimState mState;

	EventTier_11_4pc(CatModelSimState state) {
		super(state.mSimEngine);
		mState = state;
	}

	public void run() {
		mState.mModel.tier_11_4pc_buffStacks = Math.min(3, mState.mModel.tier_11_4pc_buffStacks + 1);

		// Logging is done in the Mangle event.

		schedule(mState.mModel.tier_11_4pc_buffDuration);
	}

	@Override
	public void onExpire() {
		if (mState.mIsLogging) mState.mLog.log("Tier 11 4pc: Expiration\n");
		mState.mModel.tier_11_4pc_buffStacks = 0;
	}
}